import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
  name: 'isnegative'
})
export class IsnegativePipe implements PipeTransform {
  //是否小于0
  transform(value: any, args?: any): any {
    if(parseFloat(value)<0){
        return true;
    }else if(parseFloat(value)>0){
        return false;
    }
    return 0;
  }

}
